import socket
import threading

class User:
    def __init__(self,sock,addr):
        self.name = None
        self.socket = sock
        self.address = addr

def start_server():
    HOST = ''      
    PORT = 6001    
    user_list:User = []
    
    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
        s.bind((HOST, PORT))
        s.listen(1)
        while len(user_list)<10:
            conn, addr = s.accept()
            user_list.append(User(conn,addr))

start_server()